package edu.base.service;

import com.github.pagehelper.PageInfo;
import edu.base.util.HigherResponse;
import edu.base.entity.RecordEquipment;


public interface RecEqptService {
	//分页查询所有设备													  
	HigherResponse<PageInfo<RecordEquipment>> queryEqptByPage(Integer pageNum,Integer pageSize);
	
	//根据日期和产品类型查询
	HigherResponse<PageInfo<RecordEquipment>> queryEqptByDate(String beginDate,String endDate,Integer prodType,Integer pageNum,Integer pageSize);
	
	//根据id查询设备信息
	HigherResponse<RecordEquipment> queryEqptById(Integer id);
	
	//根据id修改设备信息
	HigherResponse<String> updateEqptById(RecordEquipment receqpt);
	
	////删除设备for real
	HigherResponse<String> deleteOneEqptById(Integer id);
	
	//删除设备fake
	HigherResponse<String> deleteEqptById(Integer id);
	
	//添加设备
	HigherResponse<String> insertEqpt(RecordEquipment receqpt);
	
	//根据报修编号查询设备
	HigherResponse<PageInfo<RecordEquipment>> queryEqptByRepairId(Integer repairId, Integer pageNum, Integer pageSize);
	
	//根据报修id产品类型查询设备
	HigherResponse<PageInfo<RecordEquipment>> queryEqptByProdType(Integer repairId,Integer prodType,Integer pageNum, Integer pageSize);
}
